/**
 * @author gaopeng
 * @date 2019/12/15 2:51 下午
 */
public class Client {
    public static void main(String[] args) {
        IUserInfo userInfo = new UserInfo();
        System.out.println(userInfo.getName());
        //对象适配器
        IUserInfo info = new Adapter(new OtherUserInfo());
        System.out.println(info.getName());
        //类适配器
        IUserInfo user = new Adapter2();
        System.out.println(user.getName());
    }
}
